#ifndef SYSTEMLOGTABLE_H
#define SYSTEMLOGTABLE_H

#include "abstracttable.h"

class SystemLogTable : public AbstractTable
{
public:
    static bool AppendSystemLog(const QString &connectName, const QVariant &args, QVariant &retVariant);
    static bool DeleteSystemLog(const QString &connectName, const QVariant &args, QVariant &retVariant);
    static bool QuerySystemLogByDate(const QString &connectName, const QVariant &args, QVariant &retVariant);

private:
    SystemLogTable(const QString &connectionName);

    static SystemLogTable *GetInstance(const QString &connectionName)
    {
        static SystemLogTable *s_pInstance = NULL;

        if(NULL == s_pInstance)
        {
            s_pInstance = new SystemLogTable(connectionName);
            qDebug() << "Structure SystemLogTable" << s_pInstance;
        }

        return s_pInstance;
    }
};

#endif // LOGININFOTABLE_H
